<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="hardcode2013.*" %>
<%@ page import="java.util.List" %>

<html>
	<head>
		<link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />
	</head>
	
	<body>
  
	<%@include file="include_header.jsp" %>
	
	<%
	if (profile != null) {
		%>
		<fieldset>
			<legend>Create Item</legend>
			<form action="/item" method="post">
				Title: <input type="text" name="title"><br>
				Description:<br><textarea name="description" rows="5" cols="50"></textarea><br>
				Price: $<input type="text" name="price" onchange="return floatInputOnChange(this);" onkeypress="return floatInputOnKeyPress(event);"><br>
				Expiration Date: <input type="date" name="expiration_date"><input type="time" name="expiration_time"><br>
				(If you can't see the date/time selector, use format: yyyy-mm-dd , hh:mm)<br>
				<input type="hidden" name="action" value="create_item">
				<input type="hidden" name="redirect" value="/myitems.jsp">
				<input type="hidden" name="redirect_error" value="/create_item.jsp">
				<input type="hidden" name="auth_key" value="<%= SessionUtil.getAuthKey(request) %>">
				<input type="submit" value="Create" />
			</form>
		</fieldset>
		<%
	}
	%>
	</body>
</html>